Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • g++: error: /lib64/libGL.so: No such file or directory

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    WotanW
    Well, for me, I have created a symbolic link to my library: # ln -s /usr/lib/x86_64-linux-gnu/libGL.so /lib64/libGL.so I am not sure that this is the smartest way to solve it, but it worked ! Tell me, if it works for you or if you have found something else ...
  • g++: error: /lib64/libGL.so: No such file or directory

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    WotanW
    OK, so finally to solve my problem, I have created a symbolic link to my library: # ln -s /usr/lib/x86_64-linux-gnu/libGL.so /lib64/libGL.so I am not sure that this is the smartest way to solve it, but it worked !
  • QTextDocument: overlay multiple items on the same cursor position

    Unsolved
    1
    0 Votes
    1 Posts
    152 Views
    No one has replied
  • For Each problem

    Solved
    4
    0 Votes
    4 Posts
    464 Views
    mrjjM
    Hi update. he needed a break; to exit loop once a match was found.
  • 0 Votes
    18 Posts
    4k Views
    mrjjM
    @Christian-Ehrlicher https://bugreports.qt.io/browse/QTBUG-73465 Please let me know if i need to change something.
  • How to trigger QMenuBar shortcuts from a child window

    Unsolved
    2
    0 Votes
    2 Posts
    569 Views
    mrjjM
    Hi I cant promise its the "right way" but fast test showed it did work fine. we use a QShortcut with setContext(Qt::ApplicationShortcut); to allow triggering the action even then the QOpenGLWindow has focus. // this function replaces the QKeySequence with a // QShortcut that can application wise be activated. void MainWindow::MakeGlobal( QAction *theAction ) { // get actions key QKeySequence keys = theAction->shortcut(); //make new QShortcut *shortcut = new QShortcut( keys, this); // flag it as a global one shortcut->setContext(Qt::ApplicationShortcut); // let global trigger the action QObject::connect(shortcut, &QShortcut::activated, theAction, &QAction::trigger); } // test use. void MainWindow::on_pushButton_2_released() { MakeGlobal(ui->actionfire); // replace QOpenGLWidget *w = new QOpenGLWidget(); w->show(); } having the QOpenGLWidget active and in front, still triggered the slot for the QMenu/action in Mainwindow. Hope it can work for your use case too. Note. if i call MakeGlobal(ui->actionfire); from MainWindow constructor i get a warning. "QAction::event: Ambiguous shortcut overload: Ctrl+F" (which is correct ! :) and it wont trigger. However, doing it just before showing other window, its does work (also for main window) as long as other window is open. I think for a full solution, you must store the QKeySequence pr action and and clear the QKeySequence on the action when you MakeGlobal ( to avoid Ambiguous shortcut ) and then when QOpenGLWindow closes, restore them back. else there might be side effects. Such as when you close other window again, then it stops working. However, this solution suffer one thing as i can see. While other Windows is open, mainwindow wont show the shortcut key on the menus. If that is not acceptable, you should just ignore this post. :) Disclaimer. just proof of concept code. needs more love to fully work.
  • Custom push-button with text and icon

    Unsolved
    8
    0 Votes
    8 Posts
    4k Views
    mrjjM
    @peter-70 ah, ok, its just not clicked you need. well if overlay concept works, then should be fine. I understand you cannot post full code. One should not take intellectual property lightly.
  • Implementing Thread Safe logging in my Qt Application

    Unsolved
    14
    0 Votes
    14 Posts
    3k Views
    A
    @aha_1980 Thanks. I'll give the qt5 installation one more try.
  • This topic is deleted!

    Unsolved
    8
    0 Votes
    8 Posts
    192 Views
  • Error in declaration within accessors

    Solved
    8
    0 Votes
    8 Posts
    808 Views
    T
    @aha_1980 said in Error in declaration within accessors: Thanks. The problem is, you get help here, but that will not help anyone later once the picture is no longer available. Sorry: Also, I'm having a hard time reading this on my phone right now. I will type next onwards.
  • QT creator failing to launch

    Unsolved
    3
    0 Votes
    3 Posts
    352 Views
    aha_1980A
    @taylopa and I am having the same problems with a failure to launch the IDE from both the search bar and terminal. And the answer is the same: not possible. Use a newer Ubuntu (or an older Creator), please
  • the mac app when deploy UI is different from the same mac app when debug UI

    Unsolved
    2
    0 Votes
    2 Posts
    274 Views
    K
    @Princein said in the mac app when deploy UI is different from the same mac app when debug UI: https://github.com/iOSPrincekin/Qt/blob/master/QA/8.png Are you setting the default style for you app before you do any styling yourself. The fusion style is a good one to use on any platform.
  • Text search in a Qt WebAssembly app running in the browser

    Unsolved webassembly browser roadmap
    1
    0 Votes
    1 Posts
    384 Views
    No one has replied
  • dylib issues with multiple Qt versions installed

    Unsolved
    4
    0 Votes
    4 Posts
    632 Views
    SGaistS
    You can use macdeployqt before starting it from the command line.
  • CMAKE_CXX_COMPILER incorrectly set to C Compiler in Qt Creator

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Pretty intriguing... Can you provide a minimal compilable example that triggers this ? Also, did you already check the bug report system for something similar ?
  • deploy to OSX AppStore

    Solved
    14
    1 Votes
    14 Posts
    4k Views
    M
    @shaan7 more or less yes. Just for codesign command I have also added the Entitlement file, see posts I'm using XCode when uploading iOS apps to AppStore but for OSX I coudn't find a way because of sandboxing. Best, Marek
  • QDateTime:currentDateTime().toString(ISO:Date) does not display time zone

    Unsolved
    2
    0 Votes
    2 Posts
    6k Views
    Christian EhrlicherC
    http://doc.qt.io/qt-5/qdatetime.html#toString-1: "If the format is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, taking the form yyyy-MM-ddTHH:mm:ss[Z|[+|-]HH:mm], depending on the timeSpec() of the QDateTime. If the timeSpec() is Qt::UTC, Z will be appended to the string; if the timeSpec() is Qt::OffsetFromUTC, the offset in hours and minutes from UTC will be appended to the string." http://doc.qt.io/qt-5/qdatetime.html#currentDateTime: "Returns the current datetime, as reported by the system clock, in the local time zone." So I don't see why the timezone should be appended.
  • How to enable the close cross in top right corner of a dialogue under Windows?

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    T
    Hi all, many thanks for all the tips here! @mrjj: That sample I didn't know till now. Will use is for testing in future. Meanwhile I found the reason and a suitable fix for this issue: The ctor call for QDialog was this: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint ) As documented this hides the What's this button in the title bar. But unfortunately under Windows it disables the Close button too. The fix is this: QDialog( parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint ) Now the What's this button is hidden and the Close button is enabled. Many thanks again! tkansgar
  • Is this a race condition...?

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    mzimmersM
    @kshegunov nice explanation...thanks. I've re-written the code so that the signal from the button opens the file to be transferred and performs an initial write. A slot catches the ACK and sends another chunk from the file. Much nicer now. As an aside, the purpose of the ACK in this application isn't just to acknowledge receipt of a valid message, but to inform the sender that the receiver is ready for another message. The receiver is an 8-bit AVR device that is saving the file to a slow EEPROM, so the ACK is needed to prevent the sender from overwhelming the receiver's meager resources.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied