Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.3k Posts
  • Using QThreadStorage in any thread

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    C
    @Grove Via C++ 11 support: thread_local std::unique_ptr<QNetworkAccessManager> tls_pQNetworkAccessManager; QNetworkAccessManager *getQNetworkAccessManager( void ) { if( nullptr == tls_pQNetworkAccessManager ) { tls_pQNetworkAccessManager.reset( new QNetworkAccessManager() ); } return tls_pQNetworkAccessManager.get(); }
  • Qt 5.12 crashing intermittently on Mac - update

    Unsolved
    1
    1 Votes
    1 Posts
    396 Views
    No one has replied
  • How to map a Horizontal slider to zoom in a map created using QCustomPlot

    Unsolved
    3
    0 Votes
    3 Posts
    352 Views
    Pablo J. RoginaP
    @nguyen-van-duan said in UNSOLVED How to map a Horizontal slider to zoom in a map created using QCustomPlot: I want to map the horizontal slider to the graph (Y axis), Something like this example could be of help?
  • Compiling OpenGL/GLEW with Qt 5.9 on ARM64 Ubuntu/Linux

    Unsolved
    1
    0 Votes
    1 Posts
    355 Views
    No one has replied
  • Include js files to the web app created by Qt

    Solved
    4
    0 Votes
    4 Posts
    535 Views
    thamT
    Wonder if it is caused by name conflict etc, so I change it to var _global_config = { api : { invokeUrl: 'abcd" } } call it in EM_JS as _global_config.api.invokeUrl Ok, at last it works. Maybe window._config and Module._config works too, maybe I was forgot to update the html or wrong spelling etc, I am not sure, sometimes this kind of small errors are hard to spot, hope someday we could have compile time error for them.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • How do setSource() and setSearchPaths() in QTextBrowser work together?

    Unsolved
    5
    0 Votes
    5 Posts
    937 Views
    R
    @christian-ehrlicher Thanks for this useful link. Perhaps I should use the ":/" scheme when setting searchPaths? The findFile() function transforms "qrc:/" into ":/" before doing the actual search. I will try this.
  • cache QImage on grapics card for fast blitting?

    Unsolved
    2
    0 Votes
    2 Posts
    262 Views
    D
    note i'm drawing into a QGraphicsView for all this. Would it be better to instead draw into a QOpenGLWidget ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    263 Views
  • How to keep the QDialog in the screen without desappearing when it loses the focus

    Solved
    7
    0 Votes
    7 Posts
    3k Views
    F
    hi, i found another solution, instead of creating another class and implementing it, i created a QDialog inside of the mainwindow and used the mainwindow as a parent. Thanks guys, you're awesome
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • qt multimedia example does not play mp3 on mac

    Unsolved
    4
    0 Votes
    4 Posts
    381 Views
    SGaistS
    Hi, Did you check that they can be played with the system's player ?
  • Define the tab position when tabifying a QDockWidget

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    l3u_L
    This leads to the very same result …
  • Creator Debug array index max = 9999

    Unsolved
    1
    0 Votes
    1 Posts
    269 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    23 Views
  • Licencing question

    Unsolved
    7
    0 Votes
    7 Posts
    703 Views
    V
    @jsulm oooooops. Sorry about that. I'll change it.
  • Offloading a cancelable job to a different thread that needs to update UI

    Unsolved
    4
    0 Votes
    4 Posts
    427 Views
    Christian EhrlicherC
    Since there is only one main thread I don't understand your statement here: I would like to also wait for the work done in the main thread From which thread do you call QtConcurrent::run()? Another one than the main thread?
  • Translation approach for non-gui application with auto-generated code parts

    Unsolved
    4
    0 Votes
    4 Posts
    368 Views
    Christian EhrlicherC
    It's the same what Qt is doing - they're providing the qm files but you have to load them by your own.
  • External prebuilt libraries

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    VRoninV
    developing my application The linker doesn't need the dll file so its location is irrelevant running it within QtCreator That's just an option inside Qt creator: https://doc.qt.io/qtcreator/creator-run-settings.html#selecting-the-run-environment Just add the path to the bin directory to the PATH variable for the run environment