Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. runtime

    Log in to post
    • All categories
    • H

      Unsolved Show build kit at runtime
      Tools • c++ build runtime • • harveyab

      2
      0
      Votes
      2
      Posts
      100
      Views

      JonB

      @harveyab said in Show build kit at runtime:

      use it for conditional compilation

      If you want to use it for this you will need to know at compile-time, not at runtime.

      Assuming (I don't know but would guess) that you cannot access the particular kit selected in Creator I would expect to have to test for compile-time defines which come from the kit chosen, e.g. compiler version like _MSC_VER.

    • R

      Solved How to add dynamic UI translation using QM files?
      General and Desktop • translation runtime dynamic loading • • Red Baron

      9
      0
      Votes
      9
      Posts
      729
      Views

      R

      Ok, so I removed all the tr() entries from my code and things are working. I guess the UI form file was the key to solving the issue. Thanks for the help, guys!

    • tansgumus

      Unsolved Crushes after deploying!
      Installation and Deployment • windows deployment runtime dependencies vcredist • • tansgumus

      10
      0
      Votes
      10
      Posts
      4391
      Views

      tansgumus

      @hskoglund said in Crushes after deploying!:

      Hi, googling finds many with the same problem, for example here
      Just guessing, but perhaps you could try some of the suggestions in there...

      Thanks for the link.
      It seems this issue doesn't even solved in Stack Overflow :(

      Any way, I did some of the suggestions mentioned in it.

      Installed all redistributable package of x86 (cuz I built my app using Qt mingw53_32) for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist) Installed all redistributable package of x64 for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist)

      Nothing changed still see my app crashes without any logical reason!

      Now I'm very sad because I can run my app only if I installed Qt on my machine which is impractical solution for deploying my app.

    • E

      Solved Q_ASSERT handler ?
      General and Desktop • qassert handler runtime • • enmaniac

      6
      0
      Votes
      6
      Posts
      2050
      Views

      kshegunov

      As said asserts are not intended to filter out user data, they are there to catch programming errors. If your user can pass you incorrect data, then it's the developer's job to sanitize it and if needed show error messages and handle the error. If the developer's not done his/hers job properly, then it should trip an assertion which is to show that the situation should be fixed. This is not a way to "slap developer's ego" but to catch their misses.

    • Sh1gs

      Solved Clarification on deleting layouts and widgets within them
      General and Desktop • qlayoutitem qlayout qwidget runtime delete • • Sh1gs

      5
      0
      Votes
      5
      Posts
      3682
      Views

      SGaist

      No, it doesn't. The QLayoutItem is not the parent of the widget, it is not a QObject. That's not its job.

    • T

      Solved Symbol not found: _iconv
      General and Desktop • linker loader runtime error runtimeerror runtime • • TheFlyingMooseMan

      7
      0
      Votes
      7
      Posts
      4469
      Views

      SGaist

      Because you didn't ask a question. Use the button to "Ask as question" and then you'll have the "Mark as solved" that should appear.

    • AthanD

      Unsolved Scrollarea not working properly on overflow
      QML and Qt Quick • scrollarea qt5.5 runtime gridlayout • • AthanD

      2
      0
      Votes
      2
      Posts
      1022
      Views

      SGaist

      Hi,

      You should put that QGridLayout inside a widget that you set on the QScrollArea. See QScrollArea::setWidget

    • AthanD

      Unsolved Create arrays of widgets dynamically at runtime with the purpose of adding them to the window
      QML and Qt Quick • widgets array runtime dynamic gui • • AthanD

      8
      0
      Votes
      8
      Posts
      5085
      Views

      JonB

      @Elg1
      I don't think anyone/the OP is around any longer to answer from a thread from 5 years ago! Suggest you open your own new thread question.

    • M

      Solved Set Mac Native Menus at Runtime
      General and Desktop • osx mac menu runtime • • maximo

      4
      0
      Votes
      4
      Posts
      1431
      Views

      SGaist

      No, that's the native OS X menu so you can't modify it. Again: use the Info.plist file, it's also explained in QMenuBar's documentation

    • B

      Images doesn't show in run time.
      QML and Qt Quick • runtime run image display load • • Bahrouh

      3
      0
      Votes
      3
      Posts
      1679
      Views

      B

      Hello @JKSH thanks for your response, I already solved the issue, the problem was in qml.qrc file, i just have to edit and update the file list with new icon images, then rebuild the project again.

    • ?

      [SOLVED] What does QtDesigner option "Support for changing languages at runtime" do?
      Tools • runtime qtdesigner options languagechange language • • A Former User

      6
      0
      Votes
      6
      Posts
      2826
      Views

      SGaist

      You're welcome !

      Good to know :)

      Since we know now that it's working, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

    • J

      Macro definition at runtime
      General and Desktop • macro runtime • • Jessica

      5
      0
      Votes
      5
      Posts
      1356
      Views

      Pablo J. Rogina

      @Jessica you're welcomed. Please don't forget to mark the post as solved.

    • M

      Mac OS X, Qt Creator. Library not loaded. Need to set the path to find out *.dylibs
      Installation and Deployment • mac os x qt creator 3.3 runtime libraries • • mezmay

      4
      0
      Votes
      4
      Posts
      5151
      Views

      SGaist

      That's normal, the PATH you modify in your terminal in not used by Finder.

      Take a look at this thread

      Might help.

      In any case, you should rather go to the Run part of the Project panel, there you can add these variables for your project so you won't be interfering with others.

    • Aslund

      [Solved] std::vector declaration causes Qt application to crash
      General and Desktop • vector std crash runtime • • Aslund

      6
      0
      Votes
      6
      Posts
      3768
      Views

      Aslund

      Hello guys

      Thanks a lot for the answers.
      Your replies got me thinking and I recalled how includes can mess things up.
      I removed a couple of the include files in some of my header files that turned out to be unnecessary.
      After removing all the header files while still being able to compile then the program was running again perfectly.

      Regards
      Sebastian Aslund

    • Giorgi

      [solved] Microsoft Visual C++ Runtime Library says error
      General and Desktop • gui runtime deploy • • Giorgi

      13
      0
      Votes
      13
      Posts
      9616
      Views

      Giorgi

      @SGaist ok. thanks

    • W

      [SOLVED] Drag and dropping widgets in a grid at runtime
      General and Desktop • drag and drop runtime widget pyqt • • wlof

      11
      1
      Votes
      11
      Posts
      6979
      Views

      W

      Inside the QTableWidget, I'm guessing I'll have ~100 of my custom widgets at most.

      In other use cases (i.e. not in the QTableWidget, but in static layouts), I've had up to 4000 of these widgets, with a few hundred being active (i.e. actively refreshing their data from the backend) at the same time, without any serious performance issues, so I know it scales relatively well.

      Also, to elaborate on the solution I offered above: cloning the custom widget proved difficult, because it has a lot of properties (I simplified the problem, the "custom widget" is actually a family of different widgets to fit different data), and because copying Qt objects is not trivial (see http://doc.qt.io/qt-5/object.html#identity-vs-value).

      What I ended up doing was write a ContainerWidget to go along the GridWidget. The ContainerWidget has a layout with no margins and is used to display another widget through a setContainedWidget() method. I also added a cloneAndPassContainedWidget() method that does what you'd expect: it returns a new ContainerWidget and gives it ownership of the contained widget. Obviously, after calling the method the original ContainerWidget becomes useless, but the method is called precisely because the original ContainerWidget is set to be destroyed, so that's not a problem. I can now use my GridWidget to display any kind of widgets, it's pretty neat! (I wrote "widget" too many times!)

      I realize the "proper" way would have been to write a model, views, and delegates, but that would have required a lot more work.

      EDIT: Here's my updated solution: https://gist.github.com/anonymous/a3b2d7e61c6b3e11742c