Trending Qt Discussions

Follow

Ask the Community


Ask any professional question and get answers from other specialists.

Stream language
Adel Ezat Fawzy Ellozy's image
Question added by Adel Ezat Fawzy Ellozy Webdeveloper. Saudi Arabian Maritiem Sports Federation
7 years ago
Answers:
6
Followers:
Views:
246
Vote Count:
1
Answer should contain a minimum of 25 characters.
Ahmed Zahran's image
Question added by Ahmed Zahran Senior Software Developer Oracle
11 years ago

Why do I have to re-declare the class static variables in both .cpp and .h files?‎

In QT, I have a class called MainWindow. I have a variable called plotGrpahics declared as static in my header MainWindow.h file: class MainWindow : public QMainWindow {‎ ... See More

Answers:
2
Followers:
Views:
448
Vote Count:
0
Answer should contain a minimum of 25 characters.
taj gul's image
Question added by taj gul Microbiologist Jan pharmaceutical Industry kabul
4 years ago
Answers:
0
Followers:
Views:
0
Vote Count:
0
Answer should contain a minimum of 25 characters.
SASMITA mohapatra's image
Question added by SASMITA mohapatra
7 years ago
Answers:
0
Followers:
Views:
22
Vote Count:
0
Answer should contain a minimum of 25 characters.
Daniel Marx's image  
Answer added by  Daniel Marx, Software Developer, Check24
11 years ago

Hi, afaik class definitions, in this case the header files, are just templates and no memory will be allocated. Static variables on the other side need memory assigned ... See More

Default profile image  
Answer added by  Deleted user
7 years ago

Thank you for the question, This report shows details about this question.

Laith Siryani's image  
Answer added by  Laith Siryani, Software Engineer, SimLab-Soft
7 years ago

The best advice I can give you is to find a template plugin for Qt Creator ( which is by the way entirely composed of plugins ) by visiting https://github.com/qt-creator/ ... See More

Mohamed Gamil's image  
Answer added by  Mohamed Gamil, Part Time Application Developer, Self Employed
7 years ago

it depends on what you like to do and what kind of programming you work with, but as i see from your background you involved in web programming so JAVA will be better to ... See More