Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. header
    Log in to post

    • SOLVED uic + CMake + GCC + custom widgets + out-of-source problem
      Tools • cmake custom widget header custom widgets uic • • stan423321  

      12
      0
      Votes
      12
      Posts
      1160
      Views

      Well, huh. I thought I tried that one with the bigger project before, but it does work with the test program here, so that must have been something else. Thank you for your assistance.
    • UNSOLVED How to rename column headers in Table View?
      General and Desktop • header table view header data set header data • • SoleyRan  

      6
      0
      Votes
      6
      Posts
      597
      Views

      QHeaderView does not use delegates unfortunately. The solution I'd suggest is to have a QLineEdit widget spawn on top of the header to do the editing rather than spawning a dialog
    • UNSOLVED MOC Version Compatibility
      General and Desktop • moc header binary compatibility compiling • • JoeWB  

      4
      0
      Votes
      4
      Posts
      947
      Views

      You have to use the correct moc to your headers. When you install Qt you must also install the devel tools for this specific Qt versions. And you should fix your buildsystem to call moc. Those moc files do no belong to the sources.
    • SOLVED Conditional #include depending on OS
      General and Desktop • header include • • jars121  

      5
      0
      Votes
      5
      Posts
      1233
      Views

      @jars121 So please mark this thread as SOLVED now. Thanks.
    • UNSOLVED Header file not found but added as library in project file and as header file
      General and Desktop • build compile header qt 5.9 headerfile • • CybeX  

      4
      0
      Votes
      4
      Posts
      7422
      Views

      "misc_common.h" is located in the "misc_common" folder, no ? That's the one you have to add to your project.
    • UNSOLVED Import Header Files in the .pro file
      General and Desktop • static header data dllimport c2491 • • Michael.R.LegakoL-3com.com  

      2
      0
      Votes
      2
      Posts
      1349
      Views

      Hi @Michael-R-LegakoL-3com-com, I think a better approach, is to use a macro to apply the dllimport/export, and then enable that macro in the library only. For example, if you look at qmake's simple_dll test example, the simple.h header contains: #ifdef SIMPLEDLL_MAKEDLL # define SIMPLEDLL_EXPORT Q_DECL_EXPORT #else # define SIMPLEDLL_EXPORT Q_DECL_IMPORT #endif class SIMPLEDLL_EXPORT Simple { ... } Then the simple_dll.pro file contains: DEFINES += SIMPLEDLL_MAKEDLL So, this way, when the library is being built (via simple_dll.pro), then class is dllexport'ed. But when other code uses that same header (in doesn't define SIMPLEDLL_MAKEDLL) then that same class is dllimport'ed instead. Typically, you end up doing this sort of thing to many classes in a single library, so rather than having the #ifdef ... #define ... etc in each header file, it often ends up being written once in a "global" project header of some kind. For example, Q_CORE_EXPORT gets defined in qglobal.h, then used throughout all of the exported core Qt class headers. Also see: When creating a library with Qt/Windows and using it in an application, then there is a link error regarding symbols which are in the library Cheers.
    • UNSOLVED Can't save Qt 5.7 project
      Tools • header • • gabor53  

      9
      0
      Votes
      9
      Posts
      2833
      Views

      @gabor53 I reinstalled Qt, I even switched back to 5.6 but the problem remained. Is it possible to mess up the Qt setting for the project or the code to trigger the disk full message? It not happen with other project. Thank you.
    • UNSOLVED Can't find stdlib.h included in cstdlib.
      Mobile and Embedded • header ndk solved • • egg.nut  

      13
      0
      Votes
      13
      Posts
      8378
      Views

      @egg.nut I met the same question,how do you solve it?
    • SOLVED QtCharts not useable in spite of the header include
      General and Desktop • qtcharts header include • • HenrikSt.  

      6
      0
      Votes
      6
      Posts
      1845
      Views

      @Wieland No problem :)
    • UNSOLVED Lost my QApplication
      General and Desktop • qapplication beginner header • • astroannie  

      12
      0
      Votes
      12
      Posts
      2539
      Views

      No worries for that :) Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)
    • SOLVED poll QTableView for selected headers
      General and Desktop • qtableview header • • mjsurette  

      4
      0
      Votes
      4
      Posts
      1262
      Views

      @bsomervi Better is in the eyes of the beholder. Why keep track of something that the system keeps track of for you? I don't need this information immediately, just when a context menu item is selected. Thanks for the answer.
    • SOLVED Formatting tableView header text
      General and Desktop • tableview header formatting • • gabor53  

      10
      0
      Votes
      10
      Posts
      10504
      Views

      SOLUTION: ui->tableView->model()->setHeaderData(2,Qt::Horizontal,QFont("Arial",10,QFont::Bold),Qt::FontRole); Actually everything is stated in the Qt Help, - just need to know how to correctly use it :)
    • SOLVED QTableView sorting and headers issue
      General and Desktop • qtableview header sorting • • mjsurette  

      2
      0
      Votes
      2
      Posts
      949
      Views

      The solution was to explicitly call sort after the call to invalidate with setSortingEnabled set to false. Both invalidate and sort were necessary
    • SOLVED QNetworkReply takes long time to emit finished signal
      General and Desktop • qt5 qnetworkreply qnetworkrequest header delay • • Tusharh  

      7
      0
      Votes
      7
      Posts
      3483
      Views

      @SGaist Hi, I resolved the issue. I was actually firing sendCustomRequest() api as I was using a specific url query in request which was needed in to fire via HEAD method. Before firing sendCustomRequest() api I was also creating & resetting my ssl configuration. So, instead I directly now use the head() api to fire my HEAD request. Now,finished signal by reply gets fired instantaneously & I am able to read my specific header value in response in no time. Thanks for your time..!! :)
    • [solved]Call class function in another cpp file
      General and Desktop • cpp class header objects • • TheHawk  

      16
      0
      Votes
      16
      Posts
      9880
      Views

      My apologies, I will create a new thread. Thanks for all your help! (and putting up with my stuff :) )
    • How can I test out header files and related C++ source code?
      General and Desktop • header header cpp qt • • rogerloh4.0  

      4
      0
      Votes
      4
      Posts
      1331
      Views

      @mrjj No, I didn't know that, thanks for pointing my errors out. :)