Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. linux
    Log in to post
    • All categories
    • laozeng1982

      Unsolved Run Qt in Linux
      General and Desktop • linux no gui • • laozeng1982

      5
      0
      Votes
      5
      Posts
      118
      Views

      JonB

      @laozeng1982
      Write a one program which just creates a QWIdget and show()s it before app.exec(). Try that. Find out whether no Qt program runs or whether it's something in your actual application.

    • J

      Unsolved Qt 5.14.1 on Linux,Dialog Close Card
      General and Desktop • linux • • jack reemoon

      6
      0
      Votes
      6
      Posts
      130
      Views

      J

      @jsulm
      void MainWindow::on_pushButton_clicked()
      {
      TestDialog *test = new TestDialog ();
      test->setAttribute(Qt::WA_DeleteOnClose);
      test->show();
      }

      #include "testdialog.h"
      #include "ui_testdialog.h"

      TestDialog::TestDialog(QWidget *parent) :
      QDialog(parent),
      ui(new Ui::TestDialog)
      {
      ui->setupUi(this);
      connect(ui->pushButton_2,&QPushButton::clicked,this,&TestDialog::pushButton_2_clicked);
      }

      TestDialog::~TestDialog()
      {
      delete ui;
      }

      void TestDialog::closeEvent(QCloseEvent *event)
      {
      event->accept();
      }

      void TestDialog::pushButton_2_clicked()
      {
      this->close();
      }
      Does qt have requirements for computers? Computers with high configuration will not get stuck.

    • A

      Unsolved Building Qt6 from source on Linux: qsb not found but it's there
      Qt 6 • building qt linux • • ale.re

      1
      1
      Votes
      1
      Posts
      288
      Views

      No one has replied

    • K

      Solved Qt6 Online Installer Ubuntu 22.04.1 LTS
      General and Desktop • linux online install qt6 • • Kevin470

      8
      0
      Votes
      8
      Posts
      2107
      Views

      K

      @jsulm @sierdzio Thank you both so much. I will try that out.

    • C

      Solved QProcess not reading process output
      General and Desktop • qprocess qdebug program terminal linux • • camtheman99

      9
      0
      Votes
      9
      Posts
      211
      Views

      JonB

      @camtheman99
      That is interesting, thanks to @Christian-Ehrlicher.

    • Dummie1138

      Solved Modifying shadow build path for Ubuntu Linux, Qt 6.3
      General and Desktop • shadowbuild shadow build linux ubuntu • • Dummie1138

      2
      0
      Votes
      2
      Posts
      110
      Views

      mrjj

      Hi
      alt text

    • G

      Unsolved mapToGlobal, wrong values with Linux
      Qt 6 • maptoglobal linux ubuntu 6.3.1 bad • • gmat

      8
      0
      Votes
      8
      Posts
      272
      Views

      G

      @Asperamanca said in mapToGlobal, wrong values with Linux:

      Yup that looks like it.

    • B

      Unsolved Building the Qt Framework with x86_64-linux-musl-g++
      Qt 6 • 6.3.0 alpha linux cmake git • • ben.cottrell

      2
      0
      Votes
      2
      Posts
      330
      Views

      jsulm

      @ben-cottrell You should check the config.log file - it should give you more information about the issue (probably something is missing).

    • G

      Solved static compilation with sonames without specifying it
      Tools • static linking dynamic link linux • • genner

      4
      0
      Votes
      4
      Posts
      154
      Views

      G

      Ok, apparently the library did not contain much code. Adding more code it now correctly shows that it is a dynamic library also with ldd.

    • M

      Unsolved Cross compilation qt6 for raspberry pi build failure, can't find .so files
      Mobile and Embedded • cross compile qt6 armv7 raspberry pi linux • • matio

      3
      0
      Votes
      3
      Posts
      444
      Views

      T

      Also there is a new instruction for Rasp + Qt6:
      https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

    • M

      Solved updating qt4 to qt5 LogText is replaced with?
      General and Desktop • linux qt creator 4.11 c++ • • micha_eleric

      3
      0
      Votes
      3
      Posts
      169
      Views

      M

      @mpergand thank you. "PlainText" fix it

    • D

      Unsolved Qt & Linux fail to build UI widgets
      General and Desktop • linux • • Dariusz

      6
      0
      Votes
      6
      Posts
      254
      Views

      Christian Ehrlicher

      And does qt_wrap_ui(SOURCES myUiGUI.ui) work (when SOURCES is your variable for your target, otherwise adjust it - please post your CMakeLists.txt)

    • D

      Solved Qt - Linux Centos wont... do stuff?
      General and Desktop • linux centos • • Dariusz

      2
      0
      Votes
      2
      Posts
      398
      Views

      D

      Wops fixed https://doc.qt.io/qt-6/linux.html

      sudo yum install mesa-libGL-devel

    • D

      Unsolved Qmake cannot find libraries
      Installation and Deployment • linux pkg-config qt creator libraries • • dhaus

      4
      0
      Votes
      4
      Posts
      1076
      Views

      S

      The PKG_CONFIG_PATH is an environment variable so you need to add it before running qmake.
      So set it through Projects > Build Settings > Build Environment in QtCreator or set it through terminal before running qmake manually in terminal.

      Screen Shot 1401-02-05 at 13.30.41.png

      Then add following lines in your .pro file:

      mac { #if you need to specify PKG_CONFIG = /usr/local/bin/pkg-config } #someone says this need in some Qt versions but not need in my Qt 5.12.12 QT_CONFIG -= no-pkg-config CONFIG += link_pkgconfig PKGCONFIG += protobuf \ grpc \ grpc++

      I can't find a way to set environment variable in .pro file. Can you do it?

    • RyanEdward

      Unsolved Easily Restart When Debugging External Executable
      General and Desktop • debugger external applic linux • • RyanEdward

      2
      0
      Votes
      2
      Posts
      154
      Views

      RyanEdward

      @RyanEdward Although not a native QTCreator solution, I use: C gist to simulate key presses on linux.
      Mapping this binary to a keyboard shortcut on your native desktop environment can hack your way to a solution.

    • M

      Unsolved Crosscompilation qt 5.12.5 on linux 64 for raspberry pi 2b
      Installation and Deployment • crosscompilatio raspberry pi 2 linux • • Michal91

      2
      0
      Votes
      2
      Posts
      273
      Views

      M

      install g++ solved problem

    • F

      Unsolved Disable jpeg in .pro file? (Linux problem)
      General and Desktop • jpeg linking linux • • FrankE

      2
      0
      Votes
      2
      Posts
      121
      Views

      mrjj

      Hi
      https://doc.qt.io/qt-5/qtimageformats-index.html

      The core Qt Gui library contains the code for JPEG so recompile is needed to get rid of it.

      However, are you sure its a clash ? I mean the JPEG is wrapped into Qt and classes so
      clashing with a free function seems unlikely.

    • P

      Solved :-1: error: Project ERROR: Unknown module(s) in QT: serialport multimedia [solved]
      Installation and Deployment • linux serialport multimedia ubuntu pro file • • poggers

      6
      0
      Votes
      6
      Posts
      505
      Views

      P

      @SGaist i just used an older version of qt(5.12 instead of 6.1.2), and it worked

    • R

      Unsolved FileDialog not rendering after porting from 5.9 to 5.12
      QML and Qt Quick • filedialog linux render • • rigu10

      1
      0
      Votes
      1
      Posts
      161
      Views

      No one has replied

    • D

      Solved Working with QTranslator on embedded system.
      Mobile and Embedded • qlinguist chinesefont embedded qt embedded system linux • • DaveYasha

      5
      0
      Votes
      5
      Posts
      269
      Views

      D

      Thank you .